package io.renren.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.entity.SysMerchantEntity;
import io.renren.entity.SysProductSkuEntity;
import io.renren.entity.SysReturnGoodsEntity;
import io.renren.form.LoginForm;


import java.math.BigDecimal;
import java.util.Map;

/**
 *
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-10-12 16:39:41
 */
public interface SysMerchantService extends IService<SysMerchantEntity> {

    PageUtils queryPage(Map<String, Object> params);

    SysMerchantEntity queryByMobile(String mobile);

    /**
     * 用户登录
     * @param form    登录表单
     * @return        返回登录信息
     */
    Map<String, Object> login(LoginForm form);

    PageUtils queryProducts(Integer merchantId, Map<String, Object> params);

    void updateCourierFee(Integer merchantId, BigDecimal money);

    void reduceInventories(Integer id, Integer inventories);

    void memberConfirmReceipt(Map<String, Object> map);

    void merchantConfirmReceipt(Map<String, Object> map);

    void agreeRefund(Map<String, Object> map);

    void updateStock(SysProductSkuEntity skuEntity);

    void updatePassword(Map<String, String> params);

    void cashOut(Integer id, BigDecimal cash);
}

